package com.cait.dutyfree.cart;

import java.util.List;
import java.util.Map;

import com.cait.dutyfree.pojo.Product;
import com.cait.dutyfree.pojo.ShoppingCartItem;

public interface CartProcessor {
	public void addToCart(Product p, int quantity, Map<String, Object> session);

	public void removeFromCart(Product p, Map<String, Object> session);

	public List<ShoppingCartItem> getAllCartItems(Map<String, Object> session);

	public void updateCart(Product p, Map<String, Object> session, Integer count);

	public boolean isEnoughStockAvailable(Product product,
			Map<String, Object> session, Integer askedQuantity);

	public void setAirline(Integer airlineId, Map<String, Object> session);
}
